﻿using System.Reflection;
using MediatR;
using Microsoft.Extensions.DependencyInjection;

namespace Core.MediatR;

public static class MediatRServiceExtension
{
    /// <summary>
    /// add MediatR
    /// </summary>
    /// <param name="services"></param>
    /// <param name="assemblies"></param>
    public static void AddMyMediatR(this IServiceCollection services, params Assembly[] assemblies)
    {
        services.AddMediatR(assemblies);
    }
}